package com.sanyang.pda.ui.takestock;

import com.sanyang.pda.adapter.StockAbnormalAdapter;
import com.sanyang.pda.contract.StockAbnormalContract;
import com.sanyang.pda.presenter.StockAbnormalPresenter;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;
import com.wangshen.base.ui.mvp.base.refresh.BaseRecyclerRefreshFragment;
import com.wangshen.projectbase.R;

import java.util.ArrayList;

public class StockAbnormalFragment extends BaseRecyclerRefreshFragment<StockAbnormalContract.View,StockAbnormalPresenter> implements StockAbnormalContract.View {

    private String entryNo;

    public StockAbnormalFragment(String entryNo) {
        this.entryNo = entryNo;
    }

    public StockAbnormalFragment() {
    }
    @Override
    public StockAbnormalPresenter getPresenter() {
        return new StockAbnormalPresenter(entryNo);
    }


    @Override
    public void initView() {

    }

    @Override
    public void initLinsenterner() {

    }

    @Override
    public void getData() {
        getRefreshLayout().autoRefresh();
    }

    @Override
    public BaseAdapter createRecyclerAdapter() {
        return new StockAbnormalAdapter(R.layout.item_stock_abnormal,new ArrayList<>());
    }
}
